package com.jcgyl.export.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.jcgyl.export.entity.Tborderhead;
import com.jcgyl.export.entity.Tborderlist;
import com.jcgyl.export.entity.Tbreceipt;
import com.jcgyl.export.util.entity.Result;

public interface OrderService {

	Map<String, Object> findObject(String orderid, String batchnumber, String expressnumber, String starttime,
			String endtime, int pageSize, int pageCount);

	void batchInsertHeads(List<Tborderhead> orderheads);

	void batchInsertBodies(List<Tborderlist> orderbodies);

	List<Tbreceipt> findReceipt(String receipttype, String expressnumber);

	Tborderhead findOrderheadByOrderId(@Param("orderid") String orderid);

	Map<String, Object> findAllOrderlistByOrderId(@Param("orderid") String orderid);

	List<Tborderlist> findOrderlistByOrderId(@Param("orderid") String orderid);

	Result updateOrderHead(Tborderhead record);

	Result updateOrderList(Tborderlist record);
}
